package com.hhkj.admin.sale.model.dopo;

import com.hhkj.admin.sale.domain.SaleCommission;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * SaleCommissionCountPo
 *
 * @author zheng
 * @since 2023/11/6 23:52
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SaleCommissionCountPo extends SaleCommission {

    /*
     * "totalPrice": 123,
     * 		"signUpPrice": 123,
     * 		"takeFromChildPrice": 1243
     */

    /** 总佣金 */
    private BigDecimal totalPrice;

    /** 报名佣金 */
    private BigDecimal signUpPrice;

    /** 推荐佣金 */
    private BigDecimal takeFromChildPrice;

    public BigDecimal getTotalPrice() {
        return totalPrice == null ? BigDecimal.ZERO : totalPrice;
    }

    public BigDecimal getSignUpPrice() {
        return signUpPrice == null ? BigDecimal.ZERO : signUpPrice;
    }

    public BigDecimal getTakeFromChildPrice() {
        return takeFromChildPrice == null ? BigDecimal.ZERO : takeFromChildPrice;
    }
}
